import http from '@/libs/httpRequest'


// 角色列表
export const getRoleListApi = () => { return http.getApi({url:`/isvpc/Install/authority`})}
// 绑定角色成员
export const modifyAdmin = data => { return http.postApi({url:`/isvpc/Install/modifyAdmin`,data})}
// 解绑成员(设置-角色，仓库管理共用)
export const removeAdmin = data => { return http.postApi({url:`/isvpc/Install/removeAdmin`,data})}


// 审批模板列表
export const ApprovalTempList = () => { return http.getApi({url:`/isvpc/Install/template`})}
// 创建审批模板
export const createApprovalTemp = () => { return http.postApi({url:`/isvpc/Install/initTemp`})}



// 新增仓库
export const insertWarehouse = data => { return http.postApi({url:`/isvpc/Install/insertWarehouse`,data})}
// 编辑仓库名称
export const modifyWarehouse = data => { return http.postApi({url:`/isvpc/Install/modifyWarehouse`,data})}
// 仓库列表
export const getWarehouse = params => { return http.getApi({url:`/isvpc/Install/warehouse`,params})}
// 删除仓库
export const removeWarehouse = data => { return http.postApi({url:`/isvpc/Install/removeWarehouse`,data})}
// 绑定仓库成员
export const bindWarehouse = data => { return http.postApi({url:`/isvpc/Install/bindWarehouse`,data})}
// 绑定仓库部门
export const bindDept = data => { return http.postApi({url:`/isvpc/Install/bindDept`,data})}





